#ifndef DEVICESSHUTDIALOG_H
#define DEVICESSHUTDIALOG_H
#include "global_defines.h"
#include "settingfile.h"
#include <QDialog>
#include <QButtonGroup>

namespace Ui
{
class devicesShutDialog;
}

class devicesShutDialog : public QDialog
{
    Q_OBJECT
public:
    explicit devicesShutDialog(QWidget *parent=nullptr);
    ~devicesShutDialog();

    void setStatus(bool isworking);

signals:
    void PB_laser_On_Clicked();
    void PB_motor_On_Clicked();

    void PB_laser_Off_Clicked();
    void PB_motor_Off_Clicked();

public slots:
    void SetLaserFlag(const bool Status);
//    void SetMotorFlag(const bool Status);

private slots:
    void on_pushButton_laser_On_clicked();

    void on_pushButton_laser_Off_clicked();

    void on_pushButton_motor_On_clicked();

    void on_pushButton_motor_Off_clicked();

    void on_confirmPushButton_clicked();

    void on_cancelPushButton_clicked();

private:
    Ui::devicesShutDialog *ui;
};

#endif // DEVICESSHUTDIALOG_H
